from PyQt5.QtWidgets import QApplication, QWidget, QPushButton, QLabel, QLineEdit, QMessageBox, QProgressDialog,QCompleter
from PyQt5.QtCore import Qt
import sys


class Demo(QWidget):
    def __init__(self):
        QWidget.__init__(self)
        wordList = ["alpha", "aaaa", "absdsad" ,"omicron", "zeta"]

        lineEdit = QLineEdit(self)
        lineEdit.move(10, 20)
        completer = QCompleter(wordList, self)
        completer.setCaseSensitivity(Qt.CaseInsensitive)
        lineEdit.setCompleter(completer)



if __name__ == '__main__':
    app = QApplication(sys.argv)
    ex = Demo()
    ex.show()
    sys.exit(app.exec_())